package com.baiyun.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;


@Data
@AllArgsConstructor
@NoArgsConstructor
public class Orders {
    private Integer oid;
    private Integer tid;
    private String tname;
    private Integer num;
    private Double price;
    //总价
    private Double allprice;
    //订单内容
    private String content;
    //堂食，外卖
    private String type;
    private String paytype;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date times;//下单时间
    //备注
    private String note;
}
